package com.weixue.service;

import com.weixue.controller.vo.NongFuMallShoppingCartItemVO;
import com.weixue.entity.NongFuMallShoppingCartItem;
import java.util.List;

/**
 * Day36
 *      购物车业务层逻辑接口
 */
public interface NongFuMallShoppingCartService {

    /**
     * 1.保存商品至购物车中
     */
    String saveNongFuMallCartItem(NongFuMallShoppingCartItem nongFuMallShoppingCartItem);

    /**
     * 2.获取我的购物车中的列表数据
     */
    List<NongFuMallShoppingCartItemVO> getMyShoppingCartItems(Long nongFuMallUserId);

    /**
     * 3.修改购物车中的属性
     */
    String updateNongFuMallCartItem(NongFuMallShoppingCartItem nongFuMallShoppingCartItem);

    /**
     * 4.删除购物车中的商品
     */
    Boolean deleteById(Long nongFuMallShoppingCartItemId);

    /**
     * 获取购物项详情
     */
    NongFuMallShoppingCartItem getNongFuMallCartItemById(Long nongFuMallShoppingCartItemId);




}
